{returns the maximum/maximum/average value in field <valfield> for table <tabname> in database <alius>, depending upon TStatFunc type: so far thse can be sfMIN, sfMAX, sfAVG}
{creates a table <targettab> which has a summed value for each field listed in TStringList <valfields> for each unique entry in <groupbyfield>. Warning: destroys any any existing <targettab>. Returns 0 if successful}
{creates file <filenam> in format <Forma> from table <sourcetab> current outputs are: CSV(fftCSV), CSV with quoted text(fftQuoted). If withheader=true then first row is fieldnames}
{creates file <filenam> in format <Forma> from Dataset <datafrom> current outputs are: CSV(fftCSV), CSV with quoted text(fftQuoted) If withheader=true then first row is fieldnames}